import Vuex from "vuex";
import Vue from "vue";

Vue.use(Vuex)
const actions = {
    setFormData(context,value){
        context.commit("SETFORMDATA",value)
    },
    setIds(context,value){
        context.commit("SETIDS",value)
    }
}
const mutations = {
    SETFORMDATA(state,value){
        state.formData = value
    },
    SETIDS(state,value){
        state.checkitemIds = value
    }
}
const state = {
    formData:{},
    checkitemIds:[]
}

export default new Vuex.Store({
    actions,
    mutations,
    state
})